home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14294 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ix.netcom.com!news
  2. From: jlilley@ix.netcom.com (John Lilley)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: loading HTML-pages
  5. Date: 29 Mar 1996 16:37:00 GMT
  6. Organization: Netcom
  7. Message-ID: <4jh3jc$scq@dfw-ixnews6.ix.netcom.com>
  8. References: <315A3491.41C6@iiic.ethz.ch>
  9. NNTP-Posting-Host: den-co11-03.ix.netcom.com
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-NETCOM-Date: Fri Mar 29 10:37:00 AM CST 1996
  13. X-Newsreader: WinVN 0.99.7
  14.  
  15. >I'm just writing a program, in which I want to load a HTML-page. Does
  16. >anybody know, how this could be done?
  17.  
  18. First you need an HTML parser, to convert the HTML input into a
  19. data structure that the program can understand directly.  If you buy Visual 
  20. parse++ from Sandstone technology, it has an HTML grammar as an example.  I 
  21. think that there are also SGML/HTML grammars for YACC.
  22.  
  23. Once that is done, you need to interpret all of the embedded image locations 
  24. and read the images.  Once that is done, you have a (relatively simple) 
  25. formatting/wrapping/image-display problem, although tables tend to complicate 
  26. matters a bit.  Personally, I'd try to find an HTML add-in (DLL, VBX, OCX) for 
  27. sale and use it.
  28.  
  29. Ask a general question, you get a general answer...
  30.  
  31. john lilley
  32.  
  33.